package biz.impl;

import java.util.List;

import dao.WordDao;
import entity.Word;
import biz.WordBiz;

public class WordBizImpl implements WordBiz {
	private WordDao wordDao;
	
	public WordDao getWordDao() {
		return wordDao;
	}

	public void setWordDao(WordDao wordDao) {
		this.wordDao = wordDao;
	}

	public List<Word> findAll() {
		return wordDao.findAll();
	}

	public Word findById(Integer id) {
		return wordDao.findById(id);
	}

	public int add(Word word) {
		return wordDao.add(word);
	}

	public int delete(Word word) {
		return wordDao.delete(word);
	}

	public int update(Word word) {
		return wordDao.update(word);
	}

	public Word findByName(String name) {
		return wordDao.findByName(name);
	}

}
